﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace OrganizationalChart.Models
{
    public class OrganizationChart
    {
        public int EmployeeID { get; set; }

        public string FirstName { get; set; }

        public string MiddleName { get; set; }

        public string LastName { get; set; }

        public string Address { get; set; }

        public string Address2 { get; set; }

        public string City { get; set; }

        public string State { get; set; }

        public string Zip { get; set; }

        public string Country { get; set; }

        public int ManagerID { get; set; }

        public string CubeNumber { get; set; }

        public string WorkPhone { get; set; }

        public string Email { get; set; }

        /// <summary>
        /// GetFullName
        /// </summary>
        /// <returns></returns>
        public string GetFullName()
        {
            return FirstName + " " + MiddleName + " " + LastName;
        }

        /// <summary>
        /// GetManagerID
        /// </summary>
        /// <returns></returns>
        public int GetManagerID()
        {
            return ManagerID;
        }

        /// <summary>
        /// GetMailingAddress
        /// </summary>
        /// <returns></returns>
        public string GetMailingAddress()
        {
            return Address + "\n" + Address2 + "\n" + City + ", " + State + " " + Zip;
        }

    }
}
